Skip to the next line in a unidbgrid... 您所在的位置:网站首页 UniDBGrid's change page problem Skip to the next line in a unidbgrid...

Skip to the next line in a unidbgrid...

2024-07-17 01:14| 来源: 网络整理| 查看: 265

Algu茅m saberia alterar esta fun莽茫o para que ao avan莽ar a linha o campo j谩 fique em modo de edi莽茫o, n茫o sendo necess谩rio dar outro clique para ficar em modo de edi莽茫o.

Does anyone know how to change this function to move the line of the field that let in edit mode , there is no need to click another to stay in edit mode ?

function reconfigure(sender, store, columns, oldStore, the, eOpts) {聽聽聽 var grid = sender;聽聽聽 for (var i = 0; i < columns.length; i++) {聽聽聽聽聽聽聽 if (columns.getEditor()) {聽聽聽聽聽聽聽聽聽聽聽 columns.getEditor().on('specialkey', function(field, e) {聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 if (e.getKey() == 13) {聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 var store = grid.getStore();聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 var selModel = grid.getSelectionModel();聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 var selectedRecord = selModel.getLastSelected();聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 var recordIndex = store.indexOf(selectedRecord);聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 var nextRecord = store.getAt(recordIndex + 1);聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 if (nextRecord) {聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 selModel.select(nextRecord);聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 }聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 }聽聽聽聽聽聽聽聽聽聽聽 })聽聽聽聽聽聽聽 }聽聽聽 }}

Tks.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有